package com.lottery.ruok.lottrey.retrofitModule.request;

import com.lottery.ruok.lottrey.retrofitModule.BaseModel;
import com.lottery.ruok.lottrey.retrofitModule.response.ChangePasswordResponse;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by ASUS on 2017/8/26.
 */

public interface ChangePasswordRequest {
    @FormUrlEncoded
    @POST("change_password")
    Observable<BaseModel<ChangePasswordResponse>> getResult(@Field("username") String username,
                                                            @Field("password") String password,
                                                            @Field("new_password") String new_password,
                                                            @Field("comfirm_password") String comfirm_password,
                                                            @Field("captcha") String captcha,
                                                            @Query("token") String token);
}
